CC = gcc

LDFLAGS = -lpthread

CFLAGS =  -I./inc 
# SRCS =      src/elog_async.c \
#                      src/elog_buf.c \
#                      src/elog_file_port.c \
#                      src/elog_file.c \
#                      test.c

SRCS = $(wildcard  src/*.c) \
                test.c

OBJS = $(SRCS:.c=.o)

all: Demo
	@echo "Build completed"

rebuild: clean all

clean:
	rm -f $(OBJS) Demo

Demo: $(OBJS)
	$(CC) $(OBJS) $(LDFLAGS) -o Demo

%.o: %.c
	$(CC) -c $(CFLAGS) $< -o $@
